﻿@model IPagedList<RestaurantListViewModel>

@{
    ViewBag.Title = "Home Page";
}

<form method ="get" action="@Url.Action("Index")"
    data-otf-ajax="true" data-otf-target="#restaurantList">


<input type="search" name="SearchTerm" data-otf-autocomplete= "@Url.Action("Autocomplete")"/>
    <p><input type="submit" value="Search By Name" /></p>



</form>

@Html.Partial("_Restaurants" , Model)